﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="pop_coutryList.ascx.cs" Inherits="uswinweb.datacontrol.pop_coutryList" %>
<table border="0" cellpadding="0" cellspacing="0" class="edtb2">
							<thead>
								<tr>
									<td>代码</td>
									<td>名称</td>
									<td>英文名</td>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td><input id="coutry_search_txt1" name="coutry_search_txt1" value="<%=coutry_tcode %>" onkeydown="if(event.keyCode==13){event.keyCode=9;}"  onchange="coutrysearch(document.getElementById('coutry_search_txt1').value,document.getElementById('coutry_search_txt2').value,document.getElementById('coutry_search_txt3').value,'tcode')" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:100px;" /></td>
									<td><input id="coutry_search_txt2" name="coutry_search_txt2" value="<%=coutry_name %>" onkeydown="if(event.keyCode==13){event.keyCode=9;}" onchange="coutrysearch(document.getElementById('coutry_search_txt1').value,document.getElementById('coutry_search_txt2').value,document.getElementById('coutry_search_txt3').value,'name')" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:100px;" /></td>
									<td><input id="coutry_search_txt3" name="coutry_search_txt3" value="<%=coutry_ename %>" onkeydown="if(event.keyCode==13){event.keyCode=9;}" onchange="coutrysearch(document.getElementById('coutry_search_txt1').value,document.getElementById('coutry_search_txt2').value,document.getElementById('coutry_search_txt3').value,'ename')" type="text" class="soout" onblur="this.className='soout'" onfocus="this.className='soon'" style="width:100px;" /></td>
								</tr>
                                <% int i = 1;
                                   foreach (System.Data.DataRow dr in nationalTab.Rows)
                                   { %>
								<tr class="tp" onmouseover="jQuery(this).addClass('co3');" onmouseout="jQuery(this).removeClass('co3');" onclick="national_luffy(document.getElementById('national_hidd_<%=i %>').innerHTML,'national_hidd','<%=dr["tcode"] %>')">
									<td><%=dr["tcode"].ToString() == "" ? "&nbsp;" : dr["tcode"]%></td>
									<td id="national_hidd_<%=i %>" name="<%=dr["tcode"] %>"><%=dr["name"].ToString() == "" ? "&nbsp;" : dr["name"]%></td>
									<td><%=dr["ename"].ToString() == "" ? "&nbsp" : dr["ename"]%></td>
								</tr>
                                <%
                                    i++;
                                    } %>
							</tbody>
							<tfoot>
								<tr>
									<td colspan="3">
                                    <%=coutry_pageList%>
                                    </td>
								</tr>
							</tfoot>
						</table>
                        <script type="text/javascript">
                            function coutrysearch(val, val2, val3, val4) {
                                loading();
                                AjaxHelper.Updater('pop_coutryList.ascx', 'showdata2', 'coutry_action=search&coutry_tcode=' + val + '&coutry_name=' + val2 + '&coutry_enmae=' + val3 + '&coutry_seatype=' + val4 + '&coutry_parms=' + val + '');
                            }
                            function national_luffy(val1, val2, val3) {
                                document.getElementById(val2 + '_luffy').value = val3;
                                document.getElementById(val2 + '_mino').innerHTML = val1;
                                document.getElementById(val2 + '_div').slideUp("slow");
                            }
    </script>